Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Generates and returns a random key. Frequently used in combination with with crypt.encrypt and crypt.decrypt.
crypt.encrypt
crypt.decrypt
function crypt.generatekey(keylength: number?): string
local username = game:GetService("Players").LocalPlayer.Character.Name print("Username:", username) local key = crypt.generatekey() print("Encryption key:", key) local data, iv = crypt.encrypt(username, key) print("Encrypted username:", data)